import { Component, OnInit, Injector, Input, Output, EventEmitter } from '@angular/core';
import { ListBase } from 'app/modules/base/list-base';
import { ComputerService, Computer } from 'app/modules/computer/services/computer.service';
import { ListResult } from 'app/modules/base/api-base';
import { MySelection } from 'app/modules/base/selection';

@Component({
	selector: 'm-select-computer',
	templateUrl: './select-computer.component.html',
	styleUrls: ['./select-computer.component.scss'],
})
export class SelectComputerComponent extends ListBase implements OnInit {
	constructor(private injector: Injector, private computerManager: ComputerService) {
		super(injector);
	}

	dataSource = this.computerManager;
	selection = new MySelection<Computer>('id');

	ngOnInit() {}
}
